<?php
/** @var DatosAntropomorficosController $this */
/** @var DatosAntropomorficos $model */
$this->breadcrumbs = array(
    'Datos Antropomorficoses' => array('index'),
    Yii::t('AweCrud.app', 'Manage'),
);

$this->menu = array(
//    array('label' => Yii::t('AweCrud.app', 'List') . ' ' . DatosAntropomorficos::label(2), 'icon' => 'list', 'url' => array('index')),
    array('label' => 'Registrar ' . DatosAntropomorficos::label(), 'icon' => 'plus', 'url' => array('create')),
);

Yii::app()->clientScript->registerScript('search', "
$('.search-button').click(function(){
	$('.search-form').toggle();
	return false;
});
$('.search-form form').submit(function(){
	$.fn.yiiGridView.update('datos-antropomorficos-grid', {
		data: $(this).serialize()
	});
	return false;
});
");
?>
<div class="row-fluid sortable span9">
    <div class="box">
        <div class="box-header well" data-original-title>
            <h2>
<!--                <i class="icon-list"></i> -->
                <?php echo Yii::t('AweCrud.app', 'Manage') ?> <?php echo DatosAntropomorficos::label(2) ?>
            </h2>
            <div class="box-icon">
                <a href="#" class="btn btn-minimize btn-round"><i class="icon-chevron-up"></i> </a> 
            </div>
        </div>

        <div class="box-content">
<!--    <center>  <legend>
            <?php echo Yii::t('AweCrud.app', 'Manage') ?> <?php echo DatosAntropomorficos::label(2) ?>    
    </legend>
    </center-->
            <?php echo CHtml::link('<i class="icon-search"></i> ' . Yii::t('AweCrud.app', 'Advanced Search'), '#', array('class' => 'search-button btn')) ?>
            <div class="search-form" style="display:none">
                <?php
                $this->renderPartial('_search', array(
                    'model' => $model,
                ));
                ?>
            </div><!-- search-form -->

            <?php
            $this->widget('bootstrap.widgets.TbGridView', array(
                'id' => 'datos-antropomorficos-grid',
                'type' => 'striped condensed',
                'dataProvider' => $model->search(),
                'filter' => $model,
                'columns' => array(
//            'id',
                    array(
                        'name' => 'ninios_id',
                        'value' => 'isset($data->ninios) ? $data->ninios : null',
                        'filter' => CHtml::listData(Ninios::model()->findAll(), 'id', Ninios::representingColumn()),
                    ),
                    'fecha',
                    'edad',
                    'talla',
                    'peso',
                    'imc',
                    array(
                        'class' => 'bootstrap.widgets.TbButtonColumn',
                    ),
                ),
            ));
            ?>
        </div>
    </div>
</div>